package com.boat.starter.ruoyi.util;

import com.boat.framework.common.util.SpringUtils;
import com.boat.starter.ruoyi.model.LoginUser;
import com.boat.starter.ruoyi.service.AdmAuthService;

/**
 * ruoyi安全工具
 * @author 周江
 *
 */
public class RuoyiSecurityUtils {
	private static final AdmAuthService admAuthService = SpringUtils.getBean(AdmAuthService.class);

	public static LoginUser getLoginUser() {
		String token = ServletUtils.getToken();
		return admAuthService.getLoginUser(token);
	}
}
